home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8959 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: dawn.mmm.com!news
  2. From: kjhopps@mmm.com (Kevin J Hopps)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: sizeof class
  5. Date: 27 Feb 1996 16:44:08 GMT
  6. Organization: 3M - St. Paul, MN  55144-1000 US
  7. Message-ID: <4gvcco$rr4@dawn.mmm.com>
  8. References: <Pine.SOL.3.91.960226185535.3663A-100000@turing.uncg.edu>
  9. Reply-To: kjhopps@mmm.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Bin . Lee (b_lee2@hamlet.uncg.edu) wrote:
  13.  
  14. > Hi, Folks:
  15.  
  16. > A simple question, for a class like
  17.  
  18. > class TestClass {};
  19.  
  20. > sizeof TestClass is 1 for BC++, is this normal ? Where dose computer store
  21. > this pointer ? 
  22.  
  23. The "this" pointer is not part of the object.  It points to the object.
  24. --
  25. Kevin J. Hopps                  e-mail: kjhopps@mmm.com
  26. 3M Company                      phone:  (612) 737-4643
  27. 3M Center, Bldg. 235-2D-57      fax:    (612) 737-2700
  28. St. Paul, MN 55144-1000         Opinions are my own.  I don't speak for 3M.
  29.     But 3M speaks for me -- I did not write the following line:
  30.  
  31. Opinions expressed herein are my own and may not represent those of 3M.
  32.